package com.patternsbox.structural.bridge;

import com.patternsbox.ActionTemplate;

public class BridgeAction extends ActionTemplate {

	@Override
	protected void doAction() {

		Abstraction abstraction = new RefinedAbstraction();
		// Set implementation and call
		abstraction.setImplementor(new ConcreteImplementorA());
		abstraction.doOperation();

		// Change implementation and call
		abstraction.setImplementor(new ConcreteImplementorB());
		abstraction.doOperation();
	}

}
